{include file="public/header" /}

<body>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <blockquote class="layui-elem-quote">欢迎使用: {:env('app.name')}
                            商家：{$bussiness.title}
                        </blockquote>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</body>
{include file="public/footer"}
<script>
    var timer;
    $(document).ready(function () {
        if (timer == undefined)
            console.log(timer);
        timer = window.setInterval(showTime, 3000);
    });
    //显示时间
    function showTime() {
        $.ajax({
            type: 'get',
            url: '/base/message',
            success: function (res) {
                if (res.code == 0) {
                    layer.confirm(res.msg, { btn: ['我已知晓'] });
                }
            }
        });
        return false;
    }
</script>

</html>